home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / Cell Control / DATA1.CAB / DELPHIDM / USize.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1998-01-11  |  694 b   |  36 lines

  1. unit USize;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Tempunit, ComCtrls, StdCtrls, Buttons, OleCtrls, CELLLib_TLB, ExtCtrls;
  8.  
  9. type
  10.   TFSize = class(TTemplate)
  11.     CheckBox1: TCheckBox;
  12.     CheckBox2: TCheckBox;
  13.     procedure CheckBox1Click(Sender: TObject);
  14.   private
  15.     { Private declarations }
  16.   public
  17.     { Public declarations }
  18.   end;
  19.  
  20. var
  21.   FSize: TFSize;
  22.  
  23. implementation
  24.  
  25. {$R *.DFM}
  26.  
  27. procedure TFSize.CheckBox1Click(Sender: TObject);
  28. begin
  29.   inherited;
  30.         if  CheckBox1.Checked = true then
  31.                 Cell1.AllowSizeCell:=true else
  32.                 Cell1.AllowSizeCell:=false;
  33. end;
  34.  
  35. end.
  36.